            <td align="center"><input type="checkbox" class="J_check" data-yid="" data-xid="J_check_x" name="ids[]" value="<?php echo $rs->id;?>" id="att_<?php echo $rs->id;?>"><?php echo $rs->id;?></td>


            <td align="center"><?php echo empty($rs->username) ? '游客' : $rs->username ?></td>
            <td align="center"><?php echo $rs->GoodsModel->product_id ?></td>
            <td align="center"><a target="_blank" href="<?php echo $rs->GoodsModel->detail_url ?>"><?php echo $rs->goods_name ?></a></td>
            <td  align="center"class="status"><?php echo PunishModel::getStatusHtmlDetail($rs->status) ?></td>
            <td>
              <?php echo PunishModel::getTypeHtmlDetail($rs->type) . $rs->cause;

              if($rs->reason){
                echo '</br><span style="color:red">处理原因:'.$rs->reason.'</span>';
              }
                ?>


            </td>
            <td align="center"><?php echo date('Y-m-d H:i', $rs->add_time) ?></td>


            <td  align="center"class="" align="center">
            <?php
                  if($rs->status == PunishModel::STATUS_NOT)
                  {
                        $op = array();

      
                            $op[] = '<a href="javascript:biaoji('.$rs->id.','.PunishModel::STATUS_HAS.');">标记为已处理</a>'; 
                            $op[] = '<a href="javascript:biaoji('.$rs->id.','.PunishModel::STATUS_CANCEL.');">取消</a>'; 
                        echo implode(' | ',$op);                        
                  }

			?>
            </td>

            <script type="text/javascript">
                  function biaoji(id, status){
                        if(!id || !status){
                              alert('ID或状态不能为空');
                              return false;
                        }
                        Wind.use('artDialog', 'iframeTools', function() {
                              art.dialog({
                                    title:'请输入原因',
                                    content:"<textarea name='reason'></textarea>",
                                    ok:function(){
                                       var reason = $("textarea[name='reason']").val();
                                       $.getJSON('<?php echo $this->createUrl("editstatus") ?>', {id: id, status:status, reason: reason}, function(data){
                                          alert(data.info);
                                          if(data.status){
                                            if(status == 1){
                                                var status_html =  '已处理';
                                            }else{
                                                var status_html =  '已取消';
                                            }
                                            
                                            $("#gbinfo_" + id).find('.status').html(status_html);
                                            $("#gbinfo_" + id).find('td:last').html(''); 
                                            $("#gbinfo_" + id).find('.reason').html(data.reason);   
                                            //window.document.location.reload();
                                          }
                                       });
                                    },
                                    cancel:function(){
                                          return;
                                    },

                              });
                        });
                  }
            </script>